package com.lanchetech.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(value="com-lanchetech-entity-FreezeAmount")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class FreezeAmount implements Serializable {
    /**
    * id
    */
    @ApiModelProperty(value="id")
    private Long id;

    /**
    * 订单id
    */
    @ApiModelProperty(value="订单id")
    private Long orderId;

    /**
    * 冻结金额，正数为冻结，负数为解冻
    */
    @ApiModelProperty(value="冻结金额，正数为冻结，负数为解冻")
    private BigDecimal amount;

    /**
    * 类型 0 订单款冻结 1 发货解冻 2 确认收货解冻 3 关闭订单解冻 4 售后解冻 5 其他原因解冻 6 其他原因冻结
    */
    @ApiModelProperty(value="类型 0 订单款冻结 1 发货解冻 2 确认收货解冻 3 关闭订单解冻 4 售后解冻 5 其他原因解冻 6 其他原因冻结")
    private Byte type;

    /**
    * 创建时间
    */
    @ApiModelProperty(value="创建时间")
    private Date createdAt;

    /**
    * 商户id
    */
    @ApiModelProperty(value="商户id")
    private Long tenantId;

    private static final long serialVersionUID = 1L;
}